package ai.yale.dao;

import ai.yale.bean.Message;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created by asus on 2017/8/17.
 */
public interface MessageRepository extends MongoRepository<Message, String>{

    List<Message> findByToUserAndSendFlag(String toUser, Boolean sendFlag);
}
